package cn.niit.dao.service.Impl;

import cn.niit.dao.UserDao;
import cn.niit.dao.impl.UserDaoImpl;
import cn.niit.dao.service.UserService;

public class UserServiceImpl implements UserService {
    // private UserDao userDao=new UserDaoImpl();
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public UserDao getUserDao() {
        return userDao;
    }

    @Override
    public String toString() {
        return "UserServiceImpl{" +
                "userDao=" + userDao +
                '}';
    }

    public int addUser() {
        return userDao.insert();
    }


}
